import request from '@/utils/request.js'

// 常量
const api_name = '/product/h5/comment'

export default {
    getCommentPageByProductId(productId,params) {
        return request({
            url: `${api_name}/getCommentPageByProductId/${productId}`,
            method: 'get',
            params: params
        })
    },
    postComment(data) {
        return request({
            url: `${api_name}/postComment`,
            method: 'post',
            data: data
        })
    },
    getCommentDetailsById(id) {
        return request({
            url: `${api_name}/getCommentDetailsById/${id}`,
            method: 'get'
        })
    }
}
